import React from 'react';
import styles from './style.css'
import {getHistory} from "../../util/uitls";
import pageRedux from '../pageRedux'
import MyIconImage from "../../component/MyIconImage";
import HeaderNav from "../../component/HeaderNav";

export class AddFriendQuanText extends React.Component {
    constructor(props) {
        super()
        this.state = {}
    }

    componentDidMount() {

    }

    auto_grow(e) {
        var element=e.target
        element.style.height = (element.scrollHeight) + "px";
    }

    render() {
        var self = this
        return <div title="添加">
            <HeaderNav title={"添加"}></HeaderNav>
            <div className={styles.body}>
                <textarea className={styles.textarea} onKeyUp={this.auto_grow.bind(this)}></textarea>
                {/*<MyIconImage image={"http://pj5qx5lsj.bkt.clouddn.com/add.png"}/>*/}
                <div className={styles.btns}>
                    <button className={styles.btn}>发布</button>
                </div>

            </div>

        </div>
    }
}


export default pageRedux(AddFriendQuanText)